package com.zxy.express.dao;


import com.autopai.base.common.mybatis.dao.BaseDao;
import com.zxy.express.dto.PracticeRecordDTO;
import com.zxy.express.entity.PracticeRecordEntity;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 总练习记录表
 *
 * @author zhangxiying ${email}
 * @since ${version} 2025-07-01
 */
@Mapper
public interface PracticeRecordDao extends BaseDao<PracticeRecordEntity> {
    Integer getPracticeDayCount(@Param("userId") Long userId);
    Integer getPracticeMaterialCount(@Param("userId") Long userId);
    Integer getPracticeTotalTime(@Param("userId") Long userId);
    List<PracticeRecordDTO> getPracticeDate(@Param("userId") Long userId,@Param("startDate") String startDate,@Param("endDate") String endDate);
	
}